#if defined(_MSC_VER)
#pragma once
#endif

#ifndef LM_CORE_MATHUTIL_H
#define LM_CORE_MATHUTIL_H

float LanczosSinc(float t, float tau = 2);

bool SolveLinearSystem2x2(const float A[2][2], const float B[2],
	float *x0, float *x1);
bool Quadratic(float A, float B, float C, float *t0, float *t1);

// calculate polar angle in degree
float Polar(float x, float y);

#endif	// LM_CORE_MATHUTIL_H